package model.expression.command;

import state.TabState;
import state.TurtleState;

public class PenUp extends AbstractCommandExpression {

	public PenUp(TabState ts) {
		super(ts);
	}
	
	@Override
	protected int getExpNumChildren() {
		return 0;
	}

	@Override
	public int evaluate() {
		//TODO: return :true
		for (Integer i : tabSt.getActiveTurtle()){
			TurtleState st= tabSt.turtlesMap.get(i);
			st.setPenDown(false);
			st.notifyObservers();
		}
		return 0;
	}

}